﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace DependencyInjection.MEF
{
    [Export("MusicBook", typeof(IBookService))]
    public class MusicBookService : IBookService
    {
        public string getBookName()
        {
            return "音乐书籍";
        }
    }

    [Export("MathBook", typeof(IBookService))]
    public class MathBook : IBookService
    {
        public string getBookName()
        {
            return "MathBook";
        }
    }

    [Export("HistoryBook", typeof(IBookService))]
    public class HistoryBook : IBookService
    {
        public string getBookName()
        {
            return "HistoryBook";
        }
    }
}
